package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_company_authorize")
public class CompanyAuthorizeDo extends Model<CompanyAuthorizeDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("company_id")
    private Long companyId;

    @TableField("shop_id")
    private Long shopId;

    /**
     * 货主code
     */
    @TableField("company_code")
    private String companyCode;

    /**
     * 密钥类别
     */
    @TableField("type")
    private String type;

    /**
     * 授权密钥key
     */
    @TableField("auth_key")
    private String authKey;

    /**
     * 密钥
     */
    @TableField("token")
    private String token;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 是否有效
     */
    @TableField("active")
    private Integer active;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
